import request from '@/utils/request'

// 查询风机错误代码列表
export function listFengjifaultcode(query) {
  return request({
    url: '/ruoyi-yuce/fengjifaultcode/list',
    method: 'get',
    params: query
  })
}

// 查询风机错误代码详细
export function getFengjifaultcode(id) {
  return request({
    url: '/ruoyi-yuce/fengjifaultcode/' + id,
    method: 'get'
  })
}

// 新增风机错误代码
export function addFengjifaultcode(data) {
  return request({
    url: '/ruoyi-yuce/fengjifaultcode',
    method: 'post',
    data: data
  })
}

// 修改风机错误代码
export function updateFengjifaultcode(data) {
  return request({
    url: '/ruoyi-yuce/fengjifaultcode',
    method: 'put',
    data: data
  })
}

// 删除风机错误代码
export function delFengjifaultcode(id) {
  return request({
    url: '/ruoyi-yuce/fengjifaultcode/' + id,
    method: 'delete'
  })
}
